package Events;

import java.util.Random;

import Main.SpaceGame;
import World.TileType;

public class TestEvent implements Event
{
	static int probibility = 100;
	private static final int min = 100,max = 1000;
	private static final Random rand = new Random();
	private int duration;
	int x;
	public void update(SpaceGame main) 
	{
		if(duration%10 == 0)
		{
			x++;
			main.world.tiles[x][15].setType(TileType.Hull);
		}
		duration--;
	}

	public void init(SpaceGame main) 
	{
		x = 0;
		duration = rand.nextInt(max-min)+min;
	}
	public boolean isDone()
	{
		return duration<0;
	}
}
